<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">城市等级</label>
            <div class="layui-input-block">
                <select name='city_level' class='layui-select' lay-search>
                    <!--{foreach [0=>'L1城市',1=>'L2城市',2=>'L3城市'] as $k=>$v}-->
                    <!--{eq name='k' value='$vo.city_level|default=0'}-->
                    <option selected value='{$k}'>{$v}</option>
                    <!--{else}-->
                    <option value='{$k}'>{$v}</option>
                    <!--{/eq}-->
                    <!--{/foreach}-->
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">类型</label>
            <div class="layui-input-block">
                <select name='type' class='layui-select' lay-search>
                    <!--{foreach [0=>'运力',1=>'分拣'] as $k=>$v}-->
                    <!--{eq name='k' value='$vo.type|default=0'}-->
                    <option selected value='{$k}'>{$v}</option>
                    <!--{else}-->
                    <option value='{$k}'>{$v}</option>
                    <!--{/eq}-->
                    <!--{/foreach}-->
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">岗位</label>
            <div class="layui-input-block">
                <select name='jobs' class='layui-select' lay-search>
                    <!--{foreach [0=>'有车',1=>'无车',2=>'标品',3=>'冻品',4=>'大件',5=>'杂工'] as $k=>$v}-->
                    <!--{eq name='k' value='$vo.jobs|default=0'}-->
                    <option selected value='{$k}'>{$v}</option>
                    <!--{else}-->
                    <option value='{$k}'>{$v}</option>
                    <!--{/eq}-->
                    <!--{/foreach}-->
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-block">
                <input name="price" value='{$vo.price|default=""}'  placeholder="请输入价格" required class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">日补贴</label>
            <div class="layui-input-block">
                <input name="subsidy" value='{$vo.subsidy|default="0"}'  placeholder="请输入日补贴" required class="layui-input">
            </div>
        </div>
    </div>
    
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
    {notempty name='Think.get.platform_id'}<input type='hidden' value='{$Think.get.platform_id}' name='platform_id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

    <script>
    window.form.render();

    </script>

</form>